package demo2;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException{
        Person person1 = new Person("kay", 23120305);
        Person person2 = (Person) person1.clone();

        person2.s.salary = 8000;
        System.out.println(person1.s.salary);
        System.out.println(person2.s.salary);
    }
}
